package com.toymate.common.exception;

import com.toymate.common.enums.ErrorEnum;

/**
 * 自定义业务异常
 *
 * @author weirdor
 * @date 2022/6/6 4:31 下午
 * @project baoling-assessment-boot
 * @company 葆龄健康
 */
public class BusinessException extends BaseException {

    public BusinessException(String msg) {
        super(ErrorEnum.ERROR.getCode(), msg);
    }

    public BusinessException(String msg, Integer errCode) {
        super(errCode, msg);
    }

}
